package com.fallsvc.ai.configuration;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.client.advisor.SimpleLoggerAdvisor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @auther falls_vc
 * description:
 * @date 2025/11/4  22:36
 */
@Configuration
public class ChatClientConfiguration {

    @Bean
    public ChatClient getChatClient(ChatClient.Builder chatClientBuilder) {
        return chatClientBuilder
                .defaultSystem("你叫fallsvc, 是fallsvc 公司!!!")
                .defaultAdvisors(new SimpleLoggerAdvisor())
                .build();
    }
}
